package com.wggd.bcreader;

import java.io.File;

public class Main {
	private static final String DEFAULT_INPUT_DIR = "D:\\barcode-input";
	
	public static void main(String[] args) {
		String inputDir = args.length > 0 ? args[0] : DEFAULT_INPUT_DIR;
		
		File inputDirFile = new File(inputDir);
		for (File f : inputDirFile.listFiles()) {
			if (f.isFile()) {
				String filePath = f.getAbsolutePath();
				BarReader reader = new BarReader(filePath);
				reader.getBarcode();
			}
		}
	}
}
